package com.hsylient.demo06;

import com.hsylient.demo04.JdbcUtil;
import lombok.SneakyThrows;

import java.sql.Connection;
import java.sql.DatabaseMetaData;

public class TestMetaData {

    @SneakyThrows
    public static void main(String[] args) {
        Connection connection = JdbcUtil.getConnection();
        DatabaseMetaData metaData = connection.getMetaData();
        System.out.println(metaData.getURL());
        System.out.println(metaData.getUserName());
        System.out.println(metaData.getDriverName());
        System.out.println(metaData.getDriverVersion());
    }
}
